package cn.opopopo.design_pattern_learn.行为型.observer;

// 邮件用户
public class EmailUser implements NewsObserver {
    private String email;

    public EmailUser(String email) {
        this.email = email;
    }

    @Override
    public void update(String news) {
        System.out.println("[📧 邮件] 发送至 " + email + "：新闻更新 - " + news);
    }
}